package com.example.springbootgraduation.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

//数据的返回实体
@Data
@AllArgsConstructor//全参
@NoArgsConstructor//无参
@EqualsAndHashCode(callSuper = false)
public class DataView {
    private Integer code = 0;//状态码
    private String msg = "";
    private Long count = 0L;//消息条数
    private Object data;

    public DataView(Long count,Object data){
        this.count = count;
        this.data = data;
    }

    public DataView(Object data){
        this.data = data;
    }
}
